﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="UserRolesMgr.aspx.cs" Inherits="kpi.Account.UserRolesMgr" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">  
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>用户组管理</h2>
    <br />
    <div>
        <asp:Label ID="Label_UserName" runat="server" Text="Label" Visible="False"></asp:Label>
    </div>
    <br />
    <div>
        <table style="width: 100%;">
            <tr>
                <td colspan="3">
                    <asp:GridView ID="GridView_UserInRoles" runat="server" AutoGenerateColumns="true" AllowPaging="True">                       
                    </asp:GridView>                   
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:DropDownList ID="DropDownList_RoleName" runat="server"></asp:DropDownList>                   
                    <asp:Button ID="Button_UserRoleMgr" runat="server" Text="管理这个用户组" OnClick="Button_UserRoleMgr_Click" />                   
                    <asp:Button ID="Button_DeleteRole" runat="server" ForeColor="Red" OnClick="Button_DeleteRole_Click" Text="删除这个组！" Visible="False" />
                    ；
                    <asp:Label ID="Label_CreateRole" runat="server" Text="新建用户组" Visible="False"></asp:Label>
                    <asp:TextBox ID="TextBox_NewRoleName" runat="server" Visible="False"></asp:TextBox>
                    <asp:Button ID="Button_CreateRole" runat="server" OnClick="Button_CreateRole_Click" Text="新建" Visible="False" />
                    <asp:Label ID="Label_DebugMsg" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="width: 160px">
                    <asp:Label ID="Label_IncAcc" runat="server" Text="包含账户" Visible="False"></asp:Label>
                </td>
                <td style="width: 120px" align="center">
                    &nbsp;</td>
                <td>
                    <asp:Label ID="Label_ExtAcc" runat="server" Text="未包含账户" Visible="False"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="width: 160px">
                    <asp:ListBox ID="ListBox_IncUserName" runat="server" Visible="False" Width="160px" Height="260px" SelectionMode="Multiple"></asp:ListBox>                   
                </td>
                <td style="width: 120px" align="center">
                    <asp:Button ID="Button_UserAddMgr" runat="server" Text="&lt;&lt;加入账户" OnClick="Button_UserAddMgr_Click" Visible="False" />
                    <asp:Button ID="Button_UserRemMgr" runat="server" OnClick="Button_UserRemMgr_Click" Text="移除账户&gt;&gt;" Visible="False" />
                </td>
                <td>
                    <asp:ListBox ID="ListBox_ExtUserName" runat="server" SelectionMode="Multiple" Width="160px" Height="260px" Visible="False"></asp:ListBox>                    
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:TextBox ID="TextBox_DebugMsg" runat="server" Height="120px" Width="385px" ReadOnly="True" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
        </table>
    </div>
    <asp:Label ID="Label_UserGuide" runat="server" Visible="False"></asp:Label>
</asp:Content>